package com.example.controller;

import com.example.mall.Product;
import com.example.util.MockData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ProductController
 * @Description TODO
 * @Author: XMK
 * @Date: 2020/4/3 14:38
 * @Version: 1.0
 */
@RestController
@RequestMapping("/product")
public class ProductController {

    @GetMapping("/getList")
    public List<Product> getList() {
        return MockData.products();
    }
}
